package com.shujia.day06;

public class Student5 {
    private String name = "江川1";
    private int age = 18;
    private String gender = "男";

    public Student5() {
    }

    public Student5(String name, int age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void show() {
        System.out.println("姓名：" + name + ", 年龄：" + age + ", 性别：" + gender);
    }
}

class Demo5{
    public static void main(String[] args) {
        Student5 s1 = new Student5("李刚", 18, "男");
        s1.setName("吴问强");
        s1.setAge(16);
        s1.setGender("男");
        s1.show();
    }
}
